using System;
using System.Runtime.InteropServices;

namespace winsw
{
	internal class Kernel32
	{
		[DllImport("Kernel32.dll", SetLastError = true)]
		internal static extern int SetStdHandle(int device, IntPtr handle);

		[DllImport("kernel32.dll", SetLastError = true)]
		internal static extern bool CreateProcess(string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, [In] ref STARTUPINFO lpStartupInfo, out PROCESS_INFORMATION lpProcessInformation);
	}
}
